import sys

from cx_Freeze import setup, Executable
import distutils

export="../bin/"

base = None
if sys.platform == "win32":
    base = "Win32GUI"

	
buildOptions = {
		"compressed" : True,
		"optimize" : 0,
		#"-b":export
		}
	
build=Executable(
	script = "Druid.py",
	base = base,
	icon = "Druid.ico",
	excludes=["extensions"],
	includes=["wx.stc","core.ide.toolsmanager"],
	#appendScriptToLibrary=True,
	#appendScriptToExe=False,
	copyDependentFiles=True,
	targetDir=export,
	#target=export,
	compress=True,
	shortcutName="Druid-ide",
	shortcutDir="MENUDIR"
)

setup(
		name = "Druid-ide",
		version = "0.1",
		description = "ide",
		author = "jsbr",
		
		options = dict(build_exe = buildOptions),
		executables = [build],
		
)


 
distutils.dir_util.copy_tree("data",export+"data",1,1,0,1,0)
distutils.dir_util.copy_tree("extensions",export+"build/exe/extensions",1,1,0,1,0)
distutils.dir_util.copy_tree("build\exe.win32-2.7",export,1,1,0,1,0)
